<div class="row">
    <div class="col-lg-12">
        <div class="ibox ">
            <div class="ibox-title">
                <h5>商品目录信息</h5>
                <div class="ibox-tools" style="top:10px;">
                    <button type="button" v-if="viewMainCategoryInfo.index != 2" class="btn btn-primary btn-sm" style="margin-right:10px;"  v-on:click="_openSelectMainCategoryInfoModel()">
                        <i class="glyphicon glyphicon-search"></i> 选择商品目录</button>

                    <button type="button" v-if="viewMainCategoryInfo.index != 2" class="btn btn-primary btn-sm" v-on:click="_openAddMainCategoryInfoModel()">
                        <i class="glyphicon glyphicon-plus"></i> 添加商品目录</button>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >目录名称：</label>
                            <label class="">{{viewMainCategoryInfo.categoryName}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >目录类别：</label>
                            <label class="">{{viewMainCategoryInfo.categoryType}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >开始时间：</label>
                            <label class="">{{viewMainCategoryInfo.startTime}}</label>
                        </div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >结束时间：</label>
                            <label class="">{{viewMainCategoryInfo.endTime}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >描述：</label>
                            <label class="">{{viewMainCategoryInfo.categoryDesc}}</label>
                        </div>
</div>
</div>

            </div>
        </div>
    </div>

    <vc:create path="admin/addMainCategory"
               callBackListener="viewMainCategoryInfo"
               callBackFunction="chooseMainCategory"
    ></vc:create>


    <vc:create path="admin/chooseMainCategory"
               emitChooseMainCategory="viewMainCategoryInfo"
               emitLoadData="viewMainCategoryInfo"
    ></vc:create>
</div>
